<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <meta name="language" content="ru" />
    <title>list{{ offset }}</title>

    <style type="text/css">

        .red {
            color: red;
            font-weight: bold;
        }

        .green {
            color: green;
        }
        body {
            background: #fff;
        }

        table {
            font: 10pt normal Arial;
        }
        table td {
            border-bottom: 1px solid #000000;
        }

    </style>
</head>
<body>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th>K</th>
            <th>Фамилия</th>
            <th>Имя</th>
            <th>Отч.</th>
            <th>Дат. рожд</th>
            <th>Паспорт</th>
            <th>Адрес</th>
        </tr>
        {% for item in data %}
        <tr>
            <td>{{ item.code }}</td>
            <td class="{% if item.f_ok %}green{% else %}red{% endif %}">{{ item.f }}</td>
            <td class="{% if item.i_ok %}green{% else %}red{% endif %}">{{ item.i }}</td>
            <td class="{% if item.o_ok %}green{% else %}red{% endif %}">{{ item.o }}</td>
            <td class="{% if item.dat_ok %}green{% else %}red{% endif %}">{{ item.dat }}</td>
            <td>
                ARM:
                <span class="{% if item.psr_ok %}green{% else %}red{% endif %}">{{ item.psr }}</span>
                <span class="{% if item.pnm_ok %}green{% else %}red{% endif %}">{{ item.pnm }}</span>
                <br>
                ASP:
                {{ item.asp_psr }} {{ item.asp_pnm }}
            </td>
            <td>ARM: {{ item.addr_arm }}<br>ASP: {{ item.addr_asp }}</td>
        </tr>
        {% endfor %}
    </table>
</body>
</html>